Attribute Transition Wrangle
// Parameters
float anim = ch("anim");
float width_base = ch("blend_width");
// Blend Width
float width = width_base;
if( chi("do_width_attr") ){
float width_attr_value = f@__width;
float width_attr_opac = chf("width_attr_opac");
width = lerp(width_base, width_attr_value, width_attr_opac);
}
// Formula
float max = anim*(width+1);
float min = max-width;
float value = fit(@__input, max, min, 0, 1);
if( width == 0 ) value = f@__input<min;
// Apply Attribute
f@__output = value;